package edu.bmstu.rslab;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * Created by Chikh (using IntelliJ IDEA).
* Date: 15.05.2009
* Time: 15:43:19
*/
class movingAction extends AbstractAction {
    private final MobileRobot robot;
    private VideoPanel videoPanel;

    public movingAction(MobileRobot robot, VideoPanel videoPanel) {
        this.robot = robot;
        this.videoPanel = videoPanel;
    }

    public void actionPerformed(ActionEvent e) {
        robot.updateBot();
        videoPanel.positionSet();
    }
}
